<?php
abstract class AdminMasterUploadControl extends AdminMaster{
	public function preExecute(){
		parent::preExecute();
		/*checking permission module*/
		$isPermission = false;
		$menuJson 	= json_decode(file_get_contents(dirname(__FILE__).'/../config/admin.json'),true);
		foreach ($menuJson as $module){
			if($module['name']=='uploadControl'){
				$isPermission = SysAccounts::checkPermission($module, true, true); 
			}
		}
		if(!$isPermission){
			$this->redirect( sfConfig::get('app_prefix') . $this->generateUrl('home_login'));
		}
		/*End */
	}
}